package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 * 
 * @author fangdada
 * @email 1819675707@qq.com
 * @date 2021-04-30 20:35:23
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

	/**
	 * 商品上架成功，修改spu上架状态
	 * @author fd
	 * @date 2021/7/5 11:05
	 * @param spuId
	 * @param code
	 */
	void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
